enum Gender {
    girl=199, // Gender.girl === 0
    boy=200
}


type User = {
    name: string,
    gender: Gender // 0 1 
}

const u1: User = {
    name: '小花',
    gender: Gender.boy
}

console.log(u1)